This print previewer / document creator uses very little code, so debugging and alterations is a snap. You may customize the code to perform your own functions, or enhance the functions we have provided you. Here's how it works...
Once you have planned how your page will be layed out, your first step is to pick a name for a unique file which will reside on your hard drive. Next, using our functions, you start drawing to the file ( text and shapes ). When you are finished, end the document then send the file to the previewer or the printer. Example:
FileDocStart "joe.txt", "Joe's Document", "This is a big document", 8.5, 11, 2
FileLine 1, 2.5, 1, 5.25 ,1, 0, 0
FileFontSetting "Times New Roman", "Bold Italic", 12, 0
FileText 1, 4, 5, "This is Joe's second output!", "leftwrap", 0
FileFontSetting "Arial", "Plain", 48, 0
FileText 3, 10, 5, "This is my BIG text!", "center", 0
FileRectangle 4.31, 7, 4.62, 8, 1, 0, 0
FileLine 1, 1, 4, 4, 4, 0
FilePageBreak
FileLine 1, 2.5, 1, 5.25, 1, 0, 0
FileDocEnd
DoPreview "joe.txt"
The description above may create a document a little messy, but let's explain how it works. The first line opens the document for writing, specifying the file name, document name, document description, width, height, and a number (1 or 2) which indicates if landscape or portrait. The next line puts a line on the page at specific coordinates with a 1 point black line (parameters are included with purchased code). Next, we provided a font setting which will set the font for all subsequent drawn text. You'll notice we changed this setting for the third text line drawn. After a couple more shapes, we created a page break for a second page with only one item, a line. When we were finished, we ended the document with FileDocEnd and sent it to the previewer.
Because we are storing all of our page description and drawings in a file, this file may be stored for later use, read and placed in a data field, etc.. The file makes it easier for the previewer and print module to randomly read which page or page range to print or display, fast!
HOW TO ORDER VIA COMPUSERVE:
To register this print previewer / document creator, GO SWREG while in CompuServe. Select the 'Register Shareware' option. Search by User ID: 74013,3316 then make your selection. CompuServe will guide you thru the rest!
Once you have registered, we will be immediately notified to send you the previewer's code. We will transmit the code via e-mail to you on CompuServe. We transmit to purchasers twice a day. You will receive your registered copy within the same day or first thing the next day, depending on the time you submitted your request. It's that easy!!
You will be automatically billed $30 + $2 handling (transmission to all cities and countries) on your next CompuServe bill.
OTHER ORDERING OPTIONS:
If you are not a CompuServe member, please call us at (206) 283-4661. We will be happy to discuss other ordering options.